REMOVE_FILES = "rm -rf out && rm -rf prebuilts"
DOWNLOAD_DEPS = "echo xxxxxxx | for one_tools in `curl -s -k https://gitee.com/landwind/openharmony_oneclick_env_init/raw/master/apt_install.list`;do sudo -S bash -c \"apt-get install -y ${one_tools}\";done"
BUILD_BEFORE = "./build/prebuilts_download.sh"
REPO_CLEAN = "repo forall -c \"git reset --hard; git clean -fd\""
REPO_UPDATE = "repo sync -c --force-sync; repo forall -c \"git lfs install; git lfs pull\""
BUILD_IMAGE = "./build.sh --product-name rk3568 --ccache"
BUILD_TEST = "./build.sh --product-name rk3568 --ccache --build-target ace_engine_test"

HTML_TEMPLATE = """
<!DOCTYPE html>
<html>
<head>
    <style>
        table {
            border-collapse: collapse;
            width: 100%;
            text-align: center;
        }
        th, td {
            border: 1px solid #ddd;
            padding: 8px;
        }
        th {
            background-color: #f2f2f2;
        }
        tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        tr:hover {
            background-color: #f1f1f1;
        }
    </style>
</head>
<body>
    <h1>ArkUI-TDD测试报告</h1>
    <p>报告生成时间：{{ timestamp }}, 详情可看附件</p>
    <p>代码获取时间：{{ code_time }}</p>
    <h2>与前一次相比新增数据总览</h2>
    {% if compare_data %}
        <table>
            <tr>
                <th>测试用例</th>
                <th>失败数量</th>
                <th>失败用例名称</th>
                <th>状态</th>
            </tr>
            {% for row in compare_data %}
            <tr>
                <td>{{ row.test_case }}</td>
                <td>{{ row.fail_count }}</td>
                <td>{{ row.fail_name }}</td>
                <td style="color: {{ row.color }};">{{ row.status }}</td>
            </tr>
            {% endfor %}
        </table>
    {% else %}
        <p>与前一次相比无新增数据</p>
    {% endif %}
    <h2>本次数据总览</h2>
    <p>用例总数量：{{ totoal_count }}</p>
    <p>崩溃总数量：{{ unavilable_count }}</p>
    <p>失败总数量：{{ failed_count }}</p>
    {% if new_data %}
        <table>
            <tr>
                <th>测试用例</th>
                <th>失败数量</th>
                <th>失败用例名称</th>
                <th>状态</th>
            </tr>
            {% for row in new_data %}
                <tr>
                    <td>{{ row.test_case }}</td>
                    <td>{{ row.fail_count }}</td>
                    <td>{{ row.fail_name }}</td>
                    <td style="color: {{ row.color }};">{{ row.status }}</td>
                </tr>
            {% endfor %}
        </table>
    {% else %}
        <p>本次无相关测试数据。</p>
    {% endif %}
</body>
</html>
"""

TDD_INTERFACE_PERSON_LIST = []

TDD_PL_LIST = []

ONE_GROUP_LIST = []
